package com.easydev.basic.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.easydev.basic.dao.DemoPojoMapper;
import com.easydev.basic.domain.DemoPojo;

/**
 * service类，用来存放业务处理逻辑
 * 
 * @author glf
 * @version 1.0
 * @CreateDate 2016年3月17日
 */
@Service
public class DemoService {

    private Logger log = LoggerFactory.getLogger(DemoService.class);

    // @Autowired
    private DemoPojoMapper demoPojoMapper;

    /**
     * 根据主键ID获取实体对象
     * 
     * @author glf
     * @param id
     * @return
     */
    public DemoPojo getDemoPojo(int id) {
        return demoPojoMapper.selectByPrimaryKey(id);
    }

}
